package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gcgl.domain.GcProject;
import com.ruoyi.gcgl.mapper.GcProjectMapper;
import com.ruoyi.gcgl.service.IGcProjectService;

/**
 * 项目立项Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-17
 */
@Service
public class GcProjectServiceImpl implements IGcProjectService {
    @Autowired
    private GcProjectMapper gcProjectMapper;

    /**
     * 查询项目立项
     * 
     * @param id 项目立项主键
     * @return 项目立项
     */
    @Override
    public GcProject selectGcProjectById(Long id){
        return gcProjectMapper.selectGcProjectById(id);
    }

    /**
     * 查询项目立项列表
     * 
     * @param gcProject 项目立项
     * @return 项目立项
     */
    @Override
    public List<GcProject> selectGcProjectList(GcProject gcProject){
        return gcProjectMapper.selectGcProjectList(gcProject);
    }

    /**
     * 新增项目立项
     * 
     * @param gcProject 项目立项
     * @return 结果
     */
    @Override
    public int insertGcProject(GcProject gcProject){
        return gcProjectMapper.insertGcProject(gcProject);
    }

    /**
     * 修改项目立项
     * 
     * @param gcProject 项目立项
     * @return 结果
     */
    @Override
    public int updateGcProject(GcProject gcProject){
        return gcProjectMapper.updateGcProject(gcProject);
    }

    /**
     * 批量删除项目立项
     * 
     * @param ids 需要删除的项目立项主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectByIds(String ids){
        return gcProjectMapper.deleteGcProjectByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目立项信息
     * 
     * @param id 项目立项主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectById(Long id){
        return gcProjectMapper.deleteGcProjectById(id);
    }

	@Override
	public List<GcProject> selectGcProject4AtList(GcProject gcProject) {
		return gcProjectMapper.selectGcProject4AtList(gcProject);
	}
}